﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Yes.Domain.Entity
{
    /// <summary>
    /// 分类
    /// </summary>
    [Table("Category")]
    public class CategoryEntity : EntityBase
    {
        /// <summary>
        /// 分类名
        /// </summary>
        [StringLength(20)]
        public string Name { get; set; }

        /// <summary>
        /// 排序值
        /// </summary>
        public int SortId { get; set; }

        /// <summary>
        /// 文章数
        /// </summary>
        public int ArticleCount { get; set; }

        /// <summary>
        /// 网页标题
        /// </summary>
        [StringLength(50)]
        public string SeoTitle { get; set; }

        /// <summary>
        /// 网页关键词
        /// </summary>
        [StringLength(50)]
        public string SeoKeywords { get; set; }

        /// <summary>
        /// 网页描述
        /// </summary>
        [StringLength(200)]
        public string SeoDescription { get; set; }
    }
}
